package com.pingan.haofang.searchcloud.common.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * druid统计配置
 */
@ConfigurationProperties(prefix = "druid.monitor")
@Component
public class DruidStatProperties {

    /**
     * 用户名
     */
    private String username = "druid";

    /**
     * 密码
     */
    private String password = "druidpwd";

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "DruidStatProperties{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
